module.exports = app => {
  const {
    controller,
    router,
    config: { api },
  } = app;

  router.post(`${api.prefix}alipay`, controller.pay.index.alipayCallback);
  router.post(`${api.prefix}wechatpay`, controller.pay.index.wechatCallback);
  router.post(`${api.v1}apppay`, controller.pay.index.tradeAppPay);
  router.post(`${api.v1}share_welfare`, controller.pay.index.shareWelfare);
  router.get(`${api.v1}pay/product`, controller.pay.product.payProductlist);
  router.post(`${api.v1}pay/apple_verify`, controller.pay.appleVerify.order);
};
